for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// IllegalCharsetNameException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const IllegalArgumentException = require(path.join(__dirname, "IllegalArgumentException.js"));
// :: BASIC SETUP
/**
* Unchecked exception thrown when a string that is not a legal charset name is used as such.
* @param {String} message - The message describing the <tt>IllegalCharsetNameException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>IllegalCharsetNameException</tt>.
* @augments IllegalArgumentException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/nio/charset/IllegalCharsetNameException.html
*/
const IllegalCharsetNameException = function (message, code) {
IllegalArgumentException.call(this, message, code);
};
// :: INHERITANCE
// set the IllegalArgumentException 'class' as the parent in the prototype chain
IllegalCharsetNameException.prototype = Object.create(IllegalArgumentException.prototype);
IllegalCharsetNameException.prototype.constructor = IllegalArgumentException;
// :: PROTOTYPE
* The name used to identify a <tt>IllegalCharsetNameException</tt>.
* @type {String}
* @default
IllegalCharsetNameException.prototype.name = "IllegalCharsetNameException";
// :: EXPORT
// export the IllegalCharsetNameException 'class'
module.exports = IllegalCharsetNameException;